<!DOCTYPE html>
<html lang="zh-cmn-Hans">
<head>
    <meta charset="UTF-8">
    <title>秒杀结束倒计时</title>
</head>
<body>
<h1 align="center">Hello world!</h1>
</body>
<script type="text/javascript" src="../../js/jquery.min.js"></script>
<script type="text/javascript" src="js/setCountDown.js"></script>
<script>
$(function(){

    var curtime = new Date();
    setCountDown.init({
        endtime:'2015-07-24 18:00',
        done:function(data){
            $('body').html(data[0]+'天'+data[1]+'小时'+data[2]+'分'+data[3]+'秒');
        },
        callback:function(timer){
            var html = '秒杀';
            $('body').html(html);
            clearInterval(timer);
            timer = null;
        }
    })
})

</script>
</html>